home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / hsclib / entity.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  1.8 KB  |  69 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1995-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  * entity.h
  22.  *
  23.  * entity structure, variables and functions
  24.  *
  25.  */
  26.  
  27. #ifndef HSCLIB_ENTITY_H
  28. #define HSCLIB_ENTITY_H
  29.  
  30. /*
  31.  * defines
  32.  */
  33.  
  34. /*
  35.  * structures & typdefs for entities
  36.  */
  37. typedef struct hscent
  38. {
  39.     STRPTR name;                /* name/id (eg &"uuml"; ) */
  40.     STRPTR replace;             /* replace by (eg "ΓΌ" ) */
  41.     LONG numeric;               /* numeric code of entity ( eg &#"123"; ) */
  42. }
  43. HSCENT;
  44.  
  45. /* value for hscent.numeric to mark icon entities */
  46. #define ICON_ENTITY (-1)
  47.  
  48. /*
  49.  *
  50.  * extern references
  51.  *
  52.  */
  53. #ifndef NOEXTERN_HSCLIB_ENTITY_H
  54.  
  55. extern HSCENT *new_hscent(STRPTR newid);
  56. extern VOID del_entity(APTR data);
  57. extern HSCENT *cpy_hscent(HSCENT * oldent);
  58.  
  59. extern int cmp_strent(APTR cmpstr, APTR entdata);
  60. extern int cmp_nument(APTR cmpstr, APTR entdata);
  61. extern int cmp_rplcent(APTR cmpstr, APTR entdata);
  62.  
  63. extern HSCENT *app_entnode(DLLIST * entlist, STRPTR entid);
  64. extern BOOL add_ent(DLLIST * entlist, STRPTR entid, STRPTR entreplace, LONG num);
  65.  
  66. #endif /* NOEXTERN_HSCLIB_ENTITY_H */
  67.  
  68. #endif /* HSCLIB_ENTITY_H */
  69.